export default [
  {
    title: '启停',
    width: 100,
    dataIndex: 'pause',
    scopedSlots: {
      customRender: 'pause'
    },
  },
  {
    title: '推广计划',
    width: 340,
    dataIndex: 'campaignNameStatus',
    scopedSlots: {
      customRender: 'campaignNameStatus'
    },
    fixed: 'left'
  },
  {
    title: '账户',
    width: 140,
    dataIndex: 'userName',
    scopedSlots: {
      customRender: 'userName'
    },
  },
  {
    title: '历史数据',
    width: 180,
    dataIndex: 'old_data',
    scopedSlots: {
      customRender: 'old_data'
    },
  },
  {
    title: '状态',
    width: 120,
    dataIndex: 'campaignStatus',
    scopedSlots: {
      customRender: 'campaignStatus'
    },
  },
  {
    title: '出价模式',
    width: 120,
    dataIndex: 'bidType',
    scopedSlots: {
      customRender: 'bidType'
    },
  },
  {
    title: '出价',
    width: 120,
    dataIndex: 'ocpcBid',
    scopedSlots: {
      customRender: 'ocpcBid'
    },
  },
  {
    title: '预算',
    width: 150,
    dataIndex: 'budget',
    scopedSlots: {
      customRender: 'budget'
    },
  },
  {
    title: '推广时段',
    width: 150,
    dataIndex: 'schedule',
    scopedSlots: {
      customRender: 'schedule'
    },
  },
  {
    title: '消费',
    width: 200,
    dataIndex: 'cost',
    defaultSortOrder: 'descend',
    scopedSlots: {
      customRender: 'cost'
    },
    sortDirections: ['descend', 'ascend'],
    sorter: (a, b) => a.cost - b.cost,
  },
  {
    title: '转化率',
    width: 180,
    dataIndex: 'ds_cvr',
    scopedSlots: {
      customRender: 'ds_cvr'
    },
  },
  {
    title: '成单量',
    width: 200,
    dataIndex: 'dsOcpcConversionsDetail',
    scopedSlots: {
      customRender: 'dsOcpcConversionsDetail'
    },
    sortDirections: ['descend', 'ascend'],
    sorter: (a, b) => a.dsOcpcConversionsDetail - b.dsOcpcConversionsDetail,
  },
  {
    title: '成单成本',
    width: 200,
    dataIndex: 'dsOcpcConversionsDetailCost',
    scopedSlots: {
      customRender: 'dsOcpcConversionsDetailCost'
    },
    sortDirections: ['descend', 'ascend'],
    sorter: (a, b) => a.dsOcpcConversionsDetailCost - b.dsOcpcConversionsDetailCost,
  },
  {
    title: 'GMV',
    width: 200,
    dataIndex: 'dsOcpcConversionsDetailAmount',
    scopedSlots: {
      customRender: 'dsOcpcConversionsDetailAmount'
    },
    sortDirections: ['descend', 'ascend'],
    sorter: (a, b) => a.dsOcpcConversionsDetailAmount - b.dsOcpcConversionsDetailAmount,
  }, {
    title: 'ROI',
    width: 200,
    dataIndex: 'roi',
    scopedSlots: {
      customRender: 'roi'
    },
    sortDirections: ['descend', 'ascend'],
    sorter: (a, b) => a.roi - b.roi,
  },
  {
    title: '展现',
    width: 200,
    dataIndex: 'impression',
    scopedSlots: {
      customRender: 'impression'
    },
    sortDirections: ['descend', 'ascend'],
    sorter: (a,b) => a.impression - b.impression,
  },
  {
    title: '点击',
    width: 200,
    dataIndex: 'click',
    scopedSlots: {
      customRender: 'click'
    },
    sortDirections: ['descend', 'ascend'],
    sorter: (a, b) => a.click - b.click,
  },
  {
    title: '点击率',
    width: 200,
    dataIndex: 'ctr',
    scopedSlots: {
      customRender: 'ctr'
    },
    sortDirections: ['descend', 'ascend'],
    sorter: (a, b) => a.ctr - b.ctr,
  },
  {
    title: '直播成单成本',
    width: 200,
    dataIndex: 'dsOcpcConversionsDetail80Cost',
    scopedSlots: {
      customRender: 'dsOcpcConversionsDetail80Cost'
    },
    sortDirections: ['descend', 'ascend'],
    sorter: (a, b) => a.dsOcpcConversionsDetail80Cost - b.dsOcpcConversionsDetail80Cost,
  },
  {
    title: '直播成单量',
    width: 200,
    dataIndex: 'dsOcpcConversionsDetail80',
    scopedSlots: {
      customRender: 'dsOcpcConversionsDetail80'
    },
    sortDirections: ['descend', 'ascend'],
    sorter: (a, b) => a.dsOcpcConversionsDetail80 - b.dsOcpcConversionsDetail80,
  },
  {
    title: '商品成单成本',
    width: 200,
    dataIndex: 'dsOcpcConversionsDetail90Cost',
    scopedSlots: {
      customRender: 'dsOcpcConversionsDetail90Cost'
    },
    sortDirections: ['descend', 'ascend'],
    sorter: (a, b) => a.dsOcpcConversionsDetail90Cost - b.dsOcpcConversionsDetail90Cost,
  },
  {
    title: '商品成单量',
    width: 200,
    dataIndex: 'dsOcpcConversionsDetail90',
    scopedSlots: {
      customRender: 'dsOcpcConversionsDetail90'
    },
    sortDirections: ['descend', 'ascend'],
    sorter: (a, b) => a.dsOcpcConversionsDetail90 - b.dsOcpcConversionsDetail90,
  },
]